FROM openjdk:17-jdk

LABEL maintainer="sheshu"

ARG JAR_FILE=target/sheshu-admin.jar
COPY ${JAR_FILE} app.jar

# 暴露应用运行的端口
EXPOSE 8080

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]